package cn.lanchengkeji.datafillingsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author bobobobobo
 * @since 2022-01-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="RqTemplate对象", description="")
public class RqTemplate extends Model<RqTemplate> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "模板名称")
    private String templateName;

    @ApiModelProperty(value = "文件名称")
    private String fileName;

    @ApiModelProperty(value = "模板路径")
    private String templateUrl;

    @ApiModelProperty(value = "上传人")
    private Integer uploadUser;

    @ApiModelProperty(value = "上传时间")
    private Date uploadTime;

    @ApiModelProperty(value = "是否审核（0-已审核  1-未审核）")
    private Integer isCheck;

    @ApiModelProperty(value = "是否发布（0-已发布  1-未发布）")
    private Integer isRelease;

    @ApiModelProperty(value = "是否启动（0-已启动 1-未启动）")
    private Integer isStart;

    @ApiModelProperty(value = "审核人")
    private Integer checkUser;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    private String updateUser;

    @ApiModelProperty(value = "删除标识")
    @TableLogic
    private Integer delFlag;


    public static final String ID = "id";

    public static final String TEMPLATE_NAME = "template_name";

    public static final String FILE_NAME = "file_name";

    public static final String TEMPLATE_URL = "template_url";

    public static final String UPLOAD_USER = "upload_user";

    public static final String UPLOAD_TIME = "upload_time";

    public static final String IS_CHECK = "is_check";

    public static final String IS_RELEASE = "is_release";

    public static final String IS_START = "is_start";

    public static final String CHECK_USER = "check_user";

    public static final String UPDATE_TIME = "update_time";

    public static final String UPDATE_USER = "update_user";

    public static final String DEL_FLAG = "del_flag";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
